using System;
using System.IO;
using Admin.NET.Application.Entity.Business;
using Admin.NET.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Admin.NET.Application.Service.SuChen4g;

/// <summary>
/// 特殊指令配置
/// </summary>
[ApiDescriptionSettings(new string[] { "业务应用" }, Order = 100)]
public class MeterFourService : IDynamicApiController, ITransient, IPrivateDependency
{
	private readonly SqlSugarRepository<SpecialInstructions> _rep;

	public MeterFourService(SqlSugarRepository<SpecialInstructions> rep)
	{
		_rep = rep;
	}

	[AllowAnonymous]
	[NonUnify]
	[HttpGet("/suchen/initinfo")]
	public string SuchenInit(string productKey)
	{
		if (productKey == "DDSU1589bfgj")
		{
			return File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "suchen/1.json");
		}
		return "";
	}
}
